package unilearn.facade;

import java.sql.SQLException;
import java.util.Vector;

import javax.naming.*;
import unilearn.da.DAAssessmentCriteriaValue;
import unilearn.domain.AssessmentCriteriaValue;

/**
 * @author Yin Zhang, 5393558
 * @version 0.1, 04 May 2008, initial creation
 */
public class AssessmentCriteriaValueFacade
{
	public static Vector<AssessmentCriteriaValue> getCriteriasByAssessment(long assessmentID)
		throws SQLException, NamingException
	{
		return DAAssessmentCriteriaValue.getCriteriaValueByAssessment(assessmentID);
	}

	public static void createNewCriteriaValue(long criteriaID, long assessmentID, int grade)
		throws SQLException, NamingException
	{
		DAAssessmentCriteriaValue.insertCriteriaValue(criteriaID, assessmentID, grade);
	}

	public static void updateOldCriteriaValue(long criteriaID, long assessmentID, int grade)
		throws SQLException, NamingException
	{
		DAAssessmentCriteriaValue.updateCriteriaValue(criteriaID, assessmentID, grade);
	}
}